<%@ include file="top.jsp" %>
<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ page import="java.util.List" %>
<%@ page import="icom.acm.admin.been.AFunction" %>
<%@ page import="icom.acm.admin.manager.AFunctionMgr" %>

<%
// 得到整个功能树
AFunctionMgr afm = new AFunctionMgr();
List<AFunction> list = afm.findAllByID_OrderId();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<link rel="StyleSheet" href="js_tree/tree.css" type="text/css">
<script type="text/javascript" src="js_tree/tree.js"></script>
	<script type="text/javascript">
		<!--
		var Tree = new Array;
		// nodeId | parentNodeId | nodeName | nodeUrl |
		<%for(int i=0;i<list.size();i++){
			AFunction func = list.get(i);%>		
			Tree[<%=i%>]="<%=func.getTreeCode()%>";
		<%}%>
		
		//-->
	</script>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>管理模块</title>
</head>
<body>
<div class="tree">
<script type="text/javascript">
<!--
	createTree(Tree);
//-->
</script>
</div>

</body>
</html>